package com.spj.service.impl;

import com.spj.dao.UserDao;
import com.spj.entity.User;
import com.spj.service.ServiceDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author :spj
 * @Date:2022/3/29
 * @description:
 */
@Service
public class ServiceImpl implements ServiceDao {
    @Autowired
    UserDao userDao;


    @Override
    public void addUser(User user) {
        userDao.addUser(user);
    }

    @Override
    public void delUser(int id) {
        userDao.delUser(id);
    }

    @Override
    public void chaUser(User user) {
        userDao.chaUser(user);
    }

    @Override
    public User findUser(int id) {
        return userDao.findUser(id);
    }


}
